package com.lq.schoolshop.util;

/**
 * @Author
 * @Date2021/1/13 14:57
 * @Version V1.0
 * 自定义字符串工具类
 **/
public class StringDefineUtil {
    /**
     * 截取图片路径
     * @param str 需要截取的字符串
     * @return
     */
    public static String sub(String str) {
        int indexOf = str.lastIndexOf("/");
        String substring = str.substring(indexOf+1);
        return substring;
    }
}
